package com.wuchao.springs.printer;

import com.wuchao.springs.ioc.Dog;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.text.MessageFormat;

/**
 * @Author wuchao66
 * @Date 2023/10/12 9:18
 * @PackageName:com.wuchao.springs.ioc
 * @ClassName: T
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class T {
    public static void main(String[] args) {

        //System.out.println(String.format("{1}1234567",1));
           // MessageFormat.format()
        //System.out.println(MessageFormat.format("{0}纸在用{1}油墨打印",1,2));
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        //装箱 拆箱 object--int
        Print print = (Print) cpac.getBean("print");
        print.printshow();


    }
}
